Spain approved a pioneering law Tuesday that gives delivery platforms a mid-August deadline to hire workers currently freelancing for them and that requires transparency of artificial intelligence used to manage workforces.

The royal decree passed by the center-left ruling coalition immediately affects some 30,000 couriers. It comes in the wake of a ruling by Spain’s top court last year and at a time when other countries in Europe and elsewhere are deciding on a labor model for the so-called gig economy, which is often blamed for precarious jobs and low salaries.

That’s because, until now, gig and other contractor workers had to pay social security fees from their own pockets if they wanted to receive benefits including unemployment subsidies and a public pension.

https://apnews.com/article/europe-spain-business-50d6552d2690013bf8be66752b26d46c